package com.sinog.biz.service.business;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;

/**
 * @desc 行政区划实现类
 * @author -
 * @date -
 */
@RestController
public interface SearchCodeListService {

    /**
     * 犯罪类型code码查询
     * @param codeType codeType
     * @return List<Map < String,String>>
     */
    @RequestMapping("/yazgl/xjxx/fzlx/code")
    List<Map<String,String>> getCodeList(@RequestParam("codeType") String codeType);

    /**
     * 行政区划代码查询
     * @param codeType codeType
     * @param pcodeId pcodeId
     * @return List<Map < String,String>>
     */
    @RequestMapping("/search/code/native")
    List<Map<String,String>> getCodeNativeList(@RequestParam String codeType,@RequestParam String pcodeId);

    /**
     * 街道代码查询
     * @param pcodeId pcodeId
     * @return List<Map < String,String>>
     */
    @RequestMapping("/search/code/jiedao")
    List<Map<String,String>> getCodeJieDaoList(@RequestParam String pcodeId);
}